package exam.service.impl;

import exam.dao.AccountDao;
import exam.domain.Account;
import exam.service.AccountService;

import java.util.List;


/**
 * @author 81924
 */
public class AccountServiceImpl implements AccountService {
    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    private AccountDao accountDao;

    @Override
    public void save(Account account) {
        this.accountDao = accountDao;
    }

    @Override
    public void update(Account account) {
        this.accountDao = accountDao;
    }

    @Override
    public void delete(Integer id) {
        this.accountDao = accountDao;
    }

    @Override
    public Account findById(Integer id) {
        return accountDao.findById(id);
    }

    @Override
    public List<Account> findAll() {
        return accountDao.findAll();
    }
}
